home *** CD-ROM | disk | FTP | other *** search
/ El Mac 1 / Magazine.iso / EL MAC 1 / Shareware / Applications / directtex Pro 2.0 / DirectTeX.4 / Installer-Files / TeX-Inputs / LaTeX / LaTeX folder / switch.def / switch.def
Encoding:
Text File  |  1995-03-27  |  6.5 KB  |  176 lines

  1. %% 
  2. %% This is file `switch.def', generated 
  3. %% on <1995/1/18> with the docstrip utility (2.2i).
  4. %% 
  5. %% The original source files were:
  6. %% 
  7. %% babel.dtx  (with options: `kernel')
  8. %% 
  9. %% Copyright (C) 1989-1994 by Johannes Braams 
  10. %% All rights reserved. 
  11. %% For additional copyright information see further down in this file. 
  12. %% 
  13. %% This file is part of the Babel system, release 3.4 patchlevel 2. 
  14. %% ---------------------------------------------------------------- 
  15. %% 
  16. %% This file is distributed in the hope that it will be useful, 
  17. %% but WITHOUT ANY WARRANTY; without even the implied warranty of 
  18. %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
  19. %% 
  20. %% 
  21. %% IMPORTANT NOTICE: 
  22. %% 
  23. %% For error reports in case of UNCHANGED versions see readme file. 
  24. %% 
  25. %% Please do not request updates from me directly. Distribution is 
  26. %% done through Mail-Servers and TeX organizations. 
  27. %% 
  28. %% You are not allowed to change this file. 
  29. %% 
  30. %% You are allowed to distribute this file under the condition that 
  31. %% it is distributed together with all files mentioned in manifest.txt. 
  32. %% 
  33. %% If you receive only some of these files from someone, complain! 
  34. %% 
  35. %% You are NOT ALLOWED to distribute this file alone. You are NOT 
  36. %% ALLOWED to take money for the distribution or use of either this 
  37. %% file or a changed version, except for a nominal charge for copying 
  38. %% etc. 
  39. %%%\iffalse
  40. %%%  @LaTeX-file{
  41. %%%     author          = "Johannes L. Braams",
  42. %%%     version         = "3.4f",
  43. %%%     date            = "03 July 1994",
  44. %%%     time            = "23:33:58 MET",
  45. %%%     filename        = "babel.dtx",
  46. %%%     address         = "PTT Research
  47. %%%                        St. Paulusstraat 4
  48. %%%                        2264 XZ Leidschendam
  49. %%%                        The Netherlands",
  50. %%%     telephone       = "(70) 3325051",
  51. %%%     FAX             = "(70) 3326477",
  52. %%%     checksum        = "60652 2080 9803 80663",
  53. %%%     email           = "J.L.Braams@research.ptt.nl (Internet)",
  54. %%%     codetable       = "ISO/ASCII",
  55. %%%     keywords        = "babel",
  56. %%%     supported       = "yes",
  57. %%%     docstring       = "This file, babel.dtx contains the core of
  58. %%%                        the babel system as it was described in
  59. %%%                        TuGboat Volume 12 no 2 and Volume 14 no 1.
  60. %%%
  61. %%%                        The checksum field above contains a CRC-16
  62. %%%                        checksum as the first value, followed by the
  63. %%%                        equivalent of the standard UNIX wc (word
  64. %%%                        count) utility output of lines, words, and
  65. %%%                        characters.  This is produced by Robert
  66. %%%                        Solovay's checksum utility.",
  67. %%%      }
  68. %%% \fi
  69. %%
  70. %% Copyright (C) 1989-1994 by Johannes Braams,
  71. %%                            PTT Research Neher Laboratories
  72. %%                            all rights reserved.
  73. %% Please report errors to: J.L. Braams
  74. %%                          J.L.Braams@research.ptt.nl
  75. \ifx\ProvidesFile\undefined
  76.   \def\ProvidesFile#1[#2 #3 #4]{\wlog{#4 #3 <#2>}}\fi
  77. \ProvidesFile{lthyphen.cfg}
  78. \ProvidesFile{switch.def}
  79.                 [1994/07/03 v3.4f
  80.       Babel language switching mechanism]
  81. \expandafter\ifx\csname iflanguage\endcsname\relax \else
  82. \expandafter\endinput
  83. \fi
  84. \ifx\language\undefined
  85.   \csname newcount\endcsname\language
  86. \fi
  87. \ifx\newlanguage\undefined
  88.   \csname newcount\endcsname\last@language
  89. \else
  90.   \countdef\last@language=19
  91. \fi
  92. \ifx\newlanguage\undefined
  93.   \def\addlanguage#1{%
  94.     \global\advance\last@language \@ne
  95.     \ifnum\last@language<\@cclvi
  96.     \else
  97.         \errmessage{No room for a new \string\language!}%
  98.     \fi
  99.     \global\chardef#1\last@language
  100.     \wlog{\string#1 = \string\language\the\last@language}}
  101. \else
  102.   \def\addlanguage{\alloc@9\language\chardef\@cclvi}
  103. \fi
  104. \def\adddialect#1#2{%
  105.     \global\chardef#1#2\relax
  106.     \wlog{\string#1 = a dialect from \string\language#2}}
  107. \def\iflanguage#1#2#3{%
  108.   \expandafter\ifx\csname l@#1\endcsname\relax
  109.     \@nolanerr{#1}%
  110.   \else
  111.     \ifnum\csname l@#1\endcsname=\language #2%
  112.     \else#3\fi
  113.   \fi}
  114. \def\selectlanguage#1{\protect\p@selectlanguage{%
  115.   \ifnum\escapechar=\expandafter`\string#1\empty
  116.      \else \string#1\empty\fi}}
  117. \ifx\undefined\protect\let\protect\relax\fi
  118. \def\p@selectlanguage#1{\relax
  119.   \expandafter\ifx\csname l@#1\endcsname\relax
  120.     \@nolanerr{#1}%
  121.   \else
  122.     \language=\csname l@#1\endcsname\relax
  123.     \originalTeX
  124.     \edef\languagename{#1}%
  125.     \expandafter\def\expandafter\originalTeX
  126.         \expandafter{\csname noextras#1\endcsname
  127.                      \let\originalTeX\empty}%
  128.     \babel@beginsave
  129.     \csname captions#1\endcsname
  130.     \csname date#1\endcsname
  131.     \csname extras#1\endcsname\relax
  132.   \fi}%
  133. \ifx\undefined\originalTeX\let\originalTeX\empty\fi
  134. \ifx\undefined\babel@beginsave\let\babel@beginsave\relax\fi
  135. \ifx\PackageError\undefined
  136.   \def\@nolanerr#1{%
  137.     \errhelp{Your command will be ignored, type <return> to proceed}%
  138.     \errmessage{You haven't defined the language #1\space yet}}
  139.   \def\@nopatterns#1{%
  140.     \message{No hyphenation patterns were loaded for}
  141.     \message{the language `#1'}
  142.     \message{I will use the patterns loaded for \string\language=0
  143.           instead}}
  144. \else
  145.   \def\@nolanerr#1{%
  146.     \PackageError{babel}%
  147.                  {You haven't defined the language #1\space yet}%
  148.         {Your command will be ignored, type <return> to proceed}}
  149.   \def\@nopatterns#1{%
  150.     \PackageWarningNoLine{babel}%
  151.         {No hyphenation patterns were loaded for\MessageBreak
  152.           the language `#1'\MessageBreak
  153.           I will use the patterns loaded for \string\language=0
  154.           instead}}
  155. \fi
  156. %%\languagespecific{russian.dtx}
  157. %%
  158. %% \CharacterTable
  159. %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
  160. %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
  161. %%   Digits        \0\1\2\3\4\5\6\7\8\9
  162. %%   Exclamation   \!     Double quote  \"     Hash (number) \#
  163. %%   Dollar        \$     Percent       \%     Ampersand     \&
  164. %%   Acute accent  \'     Left paren    \(     Right paren   \)
  165. %%   Asterisk      \*     Plus          \+     Comma         \,
  166. %%   Minus         \-     Point         \.     Solidus       \/
  167. %%   Colon         \:     Semicolon     \;     Less than     \<
  168. %%   Equals        \=     Greater than  \>     Question mark \?
  169. %%   Commercial at \@     Left bracket  \[     Backslash     \\
  170. %%   Right bracket \]     Circumflex    \^     Underscore    \_
  171. %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
  172. %%   Right brace   \}     Tilde         \~}
  173. \endinput
  174. %% 
  175. %% End of file `switch.def'.
  176.